<template>
  <div class="my-income-layout">
    <snackbar style-color="#4A4A4A"
              back-color="#ffffff"
              status-color="#ffffff"
              rightText="新增"
              :fixed="true">
      <template slot="slot">
      </template>
    </snackbar>
    <div class="MaxDiv">
        <div class="divOne">
            <span>工业设计城</span>
            <div class="greenLine"></div>
            <span>倒土场1</span>
        </div>
        <div class="divTwo">
            <div class="divTwoLeft"><span class="divTwoSP1">距离:</span><span class="numBer">10</span><span class="divTwoSP1">km</span>
            </div>
            <div class="divTwoSPD"><span class="divTwoSP1">单价:</span><span class="numBer">￥200</span></div>
        </div>
        <div class="hr"></div>
        <div class="divThree">
            <div class="inesteDate"><span>创建时间:2021-6-30</span></div>
            <div class="update"><span>修改</span></div>
        </div>
    </div>
    <div class="MaxDiv">
        <div class="divOne">
            <span>工业设计城</span>
            <div class="greenLine"></div>
            <span>倒土场1</span>
        </div>
        <div class="divTwo">
            <div class="divTwoLeft"><span class="divTwoSP1">距离:</span><span class="numBer">10</span><span class="divTwoSP1">km</span>
            </div>
            <div class="divTwoSPD"><span class="divTwoSP1">单价:</span><span class="numBer">￥200</span></div>
        </div>
        <div class="hr"></div>
        <div class="divThree">
            <div class="inesteDate"><span>创建时间:2021-6-30</span></div>
            <div class="update"><span>修改</span></div>
        </div>
    </div>

    <div class="bottom-layout">
      <span class="rests-btn">项目情况</span>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'income',
    data() {
      return {
        active: null
      }
    }
  }
</script>

<style lang="scss" scoped>

  .my-income-layout {
    .top-layout {
      display: flex;
      flex-direction: row;
      align-items: center;
      border-bottom: 1px solid rgba(219, 219, 219, 0.5);
      width: 100vw;
      background-color: white;

      .tebs-layout {
        width: 100vw;
      }
    }

    .bottom-layout {
      position: fixed;
      bottom: 0px;
      width: 100vw;
      height: 47px;
      display: flex;
      flex-direction: row;


      .rests-btn {
        width: 100vw;
        height: 47px;
        background: #FFFFFF;
        display: flex;
        flex-direction: row;
        padding-left: 11%;
        // justify-content: center;
        align-items: center;
        border-top: 1px solid rgba(221, 220, 220, 0.5);
        font-size: 14px;
        color: #65C368;
      }

      .add-btn {
        flex: 1;
        height: 47px;
        background: linear-gradient(221deg, #7ED785 0%, #64C367 100%);
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;

        font-size: 14px;
        color: #FFFFFF;
      }
    }

  }
  .MaxDiv {
      margin: 4% auto 8% auto;
      width: 96.05%;
      height: 150.5px;
      background-color: #FFFFFF;
      border-radius: 3px;
      // margin: 2.8% 0px 9.19% 0px;
      overflow: hidden;
  }

  .divOne {
      width: 100%;
      // height: 16.618%;
      height: 4vh;
      line-height: 4vh;
      // line-height: 16.618%;
      display: flex;
      padding-left: 7.684%;
      padding-top: 5.22%;
  }

  .divOne>span {
      width: 23.335%;
      height: 100%;
      background-color: skyblue;
      text-align: center;
      color: rgba(255, 255, 255, 1);
      border-radius: 3px;
      // line-height: 190%;
      font-size: 2%;
      background-color: rgba(101, 195, 104, 1);
  }

  .greenLine {
      width: 34.206%;
      background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPng43140209f2d6e96ef1067ad5b7e61ab055333a747dd5475e34b58323218616eb) -5% -5% no-repeat;
      background-size: 100% 20%;
      margin: 3.48% 2.61% 0px 1.886%;
  }

  .divTwo {
      margin: 5.22% 0px 0px 7.684%;
      display: flex;
      width: 100%;
      line-height: 87%;
      height: 13.3%;
  }
  .divTwoSPD{
     margin-left: 4%;
  }

  .divTwoSP1 {
      font-size: 80%;
      font-family: PingFangSC-Light;
      color: rgba(180, 180, 180, 1);
  }

  .numBer {
      font-size: 80%;
      font-family: PingFangSC-Light;
      color: rgba(74, 74, 74, 1);
  }

  .divTwoLeft {
      margin-right: 40.51%;
  }

  .hr {
      width: 85%;
      text-align: center;
      height: 1px;
      border-bottom: 1px solid #ccc;
      margin: 0px auto;
      padding-top: 5.8%;
  }

  .divThree {
      display: flex;
      width: 100%;
      height: 13.29%;
      color: rgba(101, 195, 104, 1);
      margin-top: 4.06%;
      font-size: 84%;
  }

  .inesteDate {
      margin: 0px 24.786% 0px 6.235%;
  }

  .update {
      width: 14.785%;
      margin-left: 12%;
      // line-height: 110%;
      text-align: center;
      border: 1px solid rgba(101, 195, 104, 1);
      border-radius: 2px;
  }
</style>
